home *** CD-ROM | disk | FTP | other *** search
- <refentry id="libgimp-gimpchannel" revision="19 Jan 2001">
- <refmeta>
- <refentrytitle>gimpchannel</refentrytitle>
- <manvolnum>3</manvolnum>
- <refmiscinfo>LIBGIMP Library</refmiscinfo>
- </refmeta>
-
- <refnamediv>
- <refname>gimpchannel</refname><refpurpose></refpurpose>
- </refnamediv>
-
- <refsynopsisdiv><title>Synopsis</title>
- <synopsis>
-
-
-
- <link linkend="gint32">gint32</link> <link linkend="gimp-channel-new">gimp_channel_new</link> (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gchar">gchar</link> *name,
- <link linkend="guint">guint</link> width,
- <link linkend="guint">guint</link> height,
- <link linkend="gdouble">gdouble</link> opacity,
- <link linkend="guchar">guchar</link> *color);
- <link linkend="gint32">gint32</link> <link linkend="gimp-channel-copy">gimp_channel_copy</link> (<link linkend="gint32">gint32</link> channel_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-channel-delete">gimp_channel_delete</link> (<link linkend="gint32">gint32</link> channel_ID);
- <link linkend="gchar">gchar</link>* <link linkend="gimp-channel-get-name">gimp_channel_get_name</link> (<link linkend="gint32">gint32</link> channel_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-channel-set-name">gimp_channel_set_name</link> (<link linkend="gint32">gint32</link> channel_ID,
- <link linkend="gchar">gchar</link> *name);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-channel-get-visible">gimp_channel_get_visible</link> (<link linkend="gint32">gint32</link> channel_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-channel-set-visible">gimp_channel_set_visible</link> (<link linkend="gint32">gint32</link> channel_ID,
- <link linkend="gboolean">gboolean</link> visible);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-channel-get-show-masked">gimp_channel_get_show_masked</link> (<link linkend="gint32">gint32</link> channel_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-channel-set-show-masked">gimp_channel_set_show_masked</link> (<link linkend="gint32">gint32</link> channel_ID,
- <link linkend="gboolean">gboolean</link> show_masked);
- <link linkend="gdouble">gdouble</link> <link linkend="gimp-channel-get-opacity">gimp_channel_get_opacity</link> (<link linkend="gint32">gint32</link> channel_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-channel-set-opacity">gimp_channel_set_opacity</link> (<link linkend="gint32">gint32</link> channel_ID,
- <link linkend="gdouble">gdouble</link> opacity);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-channel-get-color">gimp_channel_get_color</link> (<link linkend="gint32">gint32</link> channel_ID,
- <link linkend="guchar">guchar</link> *red,
- <link linkend="guchar">guchar</link> *green,
- <link linkend="guchar">guchar</link> *blue);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-channel-set-color">gimp_channel_set_color</link> (<link linkend="gint32">gint32</link> channel_ID,
- <link linkend="guchar">guchar</link> red,
- <link linkend="guchar">guchar</link> green,
- <link linkend="guchar">guchar</link> blue);
- <link linkend="gint">gint</link> <link linkend="gimp-channel-get-tattoo">gimp_channel_get_tattoo</link> (<link linkend="gint32">gint32</link> channel_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-channel-set-tattoo">gimp_channel_set_tattoo</link> (<link linkend="gint32">gint32</link> channel_ID,
- <link linkend="gint">gint</link> tattoo);
- #define <link linkend="gimp-channel-get-image-id">gimp_channel_get_image_id</link>
- </synopsis>
- </refsynopsisdiv>
-
-
-
-
-
- <refsect1>
- <title>Description</title>
- <para>
-
- </para>
- </refsect1>
-
- <refsect1>
- <title>Details</title>
- <refsect2>
- <title><anchor id="gimp-channel-new">gimp_channel_new ()</title>
- <programlisting><link linkend="gint32">gint32</link> gimp_channel_new (<link linkend="gint32">gint32</link> image_ID,
- <link linkend="gchar">gchar</link> *name,
- <link linkend="guint">guint</link> width,
- <link linkend="guint">guint</link> height,
- <link linkend="gdouble">gdouble</link> opacity,
- <link linkend="guchar">guchar</link> *color);</programlisting>
- <para>
- Create a new channel.
- </para>
- <para>
- This procedure creates a new channel with the specified width and
- height. Name, opacity, and color are also supplied parameters. The
- new channel still needs to be added to the image, as this is not
- automatic. Add the new channel with the 'gimp_image_add_channel'
- command. Other attributes such as channel show masked, should be set
- with explicit procedure calls. The channel's contents are undefined
- initially.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>image_ID</parameter> :</entry>
- <entry> The image to which to add the channel.
- </entry></row>
- <row><entry align="right"><parameter>name</parameter> :</entry>
- <entry> The channel name.
- </entry></row>
- <row><entry align="right"><parameter>width</parameter> :</entry>
- <entry> The channel width.
- </entry></row>
- <row><entry align="right"><parameter>height</parameter> :</entry>
- <entry> The channel height.
- </entry></row>
- <row><entry align="right"><parameter>opacity</parameter> :</entry>
- <entry> The channel opacity.
- </entry></row>
- <row><entry align="right"><parameter>color</parameter> :</entry>
- <entry> The channel compositing color.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The newly created channel.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-channel-copy">gimp_channel_copy ()</title>
- <programlisting><link linkend="gint32">gint32</link> gimp_channel_copy (<link linkend="gint32">gint32</link> channel_ID);</programlisting>
- <para>
- Copy a channel.
- </para>
- <para>
- This procedure copies the specified channel and returns the copy.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>channel_ID</parameter> :</entry>
- <entry> The channel to copy.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The newly copied channel.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-channel-delete">gimp_channel_delete ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_channel_delete (<link linkend="gint32">gint32</link> channel_ID);</programlisting>
- <para>
- Delete a channel.
- </para>
- <para>
- This procedure deletes the specified channel. This must not be done
- if the gimage containing this channel was already deleted or if the
- channel was already removed from the image. The only case in which
- this procedure is useful is if you want to get rid of a channel
- which has not yet been added to an image.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>channel_ID</parameter> :</entry>
- <entry> The channel to delete.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-channel-get-name">gimp_channel_get_name ()</title>
- <programlisting><link linkend="gchar">gchar</link>* gimp_channel_get_name (<link linkend="gint32">gint32</link> channel_ID);</programlisting>
- <para>
- Get the name of the specified channel.
- </para>
- <para>
- This procedure returns the specified channel's name.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>channel_ID</parameter> :</entry>
- <entry> The channel.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The channel name.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-channel-set-name">gimp_channel_set_name ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_channel_set_name (<link linkend="gint32">gint32</link> channel_ID,
- <link linkend="gchar">gchar</link> *name);</programlisting>
- <para>
- Set the name of the specified channel.
- </para>
- <para>
- This procedure sets the specified channel's name.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>channel_ID</parameter> :</entry>
- <entry> The channel.
- </entry></row>
- <row><entry align="right"><parameter>name</parameter> :</entry>
- <entry> The new channel name.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-channel-get-visible">gimp_channel_get_visible ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_channel_get_visible (<link linkend="gint32">gint32</link> channel_ID);</programlisting>
- <para>
- Get the visibility of the specified channel.
- </para>
- <para>
- This procedure returns the specified channel's visibility.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>channel_ID</parameter> :</entry>
- <entry> The channel.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The channel visibility.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-channel-set-visible">gimp_channel_set_visible ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_channel_set_visible (<link linkend="gint32">gint32</link> channel_ID,
- <link linkend="gboolean">gboolean</link> visible);</programlisting>
- <para>
- Set the visibility of the specified channel.
- </para>
- <para>
- This procedure sets the specified channel's visibility.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>channel_ID</parameter> :</entry>
- <entry> The channel.
- </entry></row>
- <row><entry align="right"><parameter>visible</parameter> :</entry>
- <entry> The new channel visibility.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-channel-get-show-masked">gimp_channel_get_show_masked ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_channel_get_show_masked (<link linkend="gint32">gint32</link> channel_ID);</programlisting>
- <para>
- Get the composite method of the specified channel.
- </para>
- <para>
- This procedure returns the specified channel's composite method. If
- it is non-zero, then the channel is composited with the image so
- that masked regions are shown. Otherwise, selected regions are
- shown.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>channel_ID</parameter> :</entry>
- <entry> The channel.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The channel composite method.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-channel-set-show-masked">gimp_channel_set_show_masked ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_channel_set_show_masked (<link linkend="gint32">gint32</link> channel_ID,
- <link linkend="gboolean">gboolean</link> show_masked);</programlisting>
- <para>
- Set the composite method of the specified channel.
- </para>
- <para>
- This procedure sets the specified channel's composite method. If it
- is non-zero, then the channel is composited with the image so that
- masked regions are shown. Otherwise, selected regions are shown.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>channel_ID</parameter> :</entry>
- <entry> The channel.
- </entry></row>
- <row><entry align="right"><parameter>show_masked</parameter> :</entry>
- <entry> The new channel composite method.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-channel-get-opacity">gimp_channel_get_opacity ()</title>
- <programlisting><link linkend="gdouble">gdouble</link> gimp_channel_get_opacity (<link linkend="gint32">gint32</link> channel_ID);</programlisting>
- <para>
- Get the opacity of the specified channel.
- </para>
- <para>
- This procedure returns the specified channel's opacity.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>channel_ID</parameter> :</entry>
- <entry> The channel.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The channel opacity.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-channel-set-opacity">gimp_channel_set_opacity ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_channel_set_opacity (<link linkend="gint32">gint32</link> channel_ID,
- <link linkend="gdouble">gdouble</link> opacity);</programlisting>
- <para>
- Set the opacity of the specified channel.
- </para>
- <para>
- This procedure sets the specified channel's opacity.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>channel_ID</parameter> :</entry>
- <entry> The channel.
- </entry></row>
- <row><entry align="right"><parameter>opacity</parameter> :</entry>
- <entry> The new channel opacity.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-channel-get-color">gimp_channel_get_color ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_channel_get_color (<link linkend="gint32">gint32</link> channel_ID,
- <link linkend="guchar">guchar</link> *red,
- <link linkend="guchar">guchar</link> *green,
- <link linkend="guchar">guchar</link> *blue);</programlisting>
- <para>
- Get the compositing color of the specified channel.
- </para>
- <para>
- This procedure returns the specified channel's compositing color.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>channel_ID</parameter> :</entry>
- <entry> The channel.
- </entry></row>
- <row><entry align="right"><parameter>red</parameter> :</entry>
- <entry>
- </entry></row>
- <row><entry align="right"><parameter>green</parameter> :</entry>
- <entry>
- </entry></row>
- <row><entry align="right"><parameter>blue</parameter> :</entry>
- <entry> The channel compositing color.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-channel-set-color">gimp_channel_set_color ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_channel_set_color (<link linkend="gint32">gint32</link> channel_ID,
- <link linkend="guchar">guchar</link> red,
- <link linkend="guchar">guchar</link> green,
- <link linkend="guchar">guchar</link> blue);</programlisting>
- <para>
- Set the compositing color of the specified channel.
- </para>
- <para>
- This procedure sets the specified channel's compositing color.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>channel_ID</parameter> :</entry>
- <entry> The channel.
- </entry></row>
- <row><entry align="right"><parameter>red</parameter> :</entry>
- <entry>
- </entry></row>
- <row><entry align="right"><parameter>green</parameter> :</entry>
- <entry>
- </entry></row>
- <row><entry align="right"><parameter>blue</parameter> :</entry>
- <entry> The new channel compositing color.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-channel-get-tattoo">gimp_channel_get_tattoo ()</title>
- <programlisting><link linkend="gint">gint</link> gimp_channel_get_tattoo (<link linkend="gint32">gint32</link> channel_ID);</programlisting>
- <para>
- Get the tattoo of the specified channel.
- </para>
- <para>
- This procedure returns the specified channel's tattoo. A tattoo is a
- unique and permanent identifier attached to a channel that can be
- used to uniquely identify a channel within an image even between
- sessions.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>channel_ID</parameter> :</entry>
- <entry> The channel.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The channel tattoo.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-channel-set-tattoo">gimp_channel_set_tattoo ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_channel_set_tattoo (<link linkend="gint32">gint32</link> channel_ID,
- <link linkend="gint">gint</link> tattoo);</programlisting>
- <para>
- Set the tattoo of the specified channel.
- </para>
- <para>
- This procedure sets the specified channel's tattoo. A tattoo is a
- unique and permanent identifier attached to a channel that can be
- used to uniquely identify a channel within an image even between
- sessions.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>channel_ID</parameter> :</entry>
- <entry> The channel.
- </entry></row>
- <row><entry align="right"><parameter>tattoo</parameter> :</entry>
- <entry> The new channel tattoo.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-channel-get-image-id">gimp_channel_get_image_id</title>
- <programlisting>#define gimp_channel_get_image_id gimp_drawable_image
- </programlisting>
- <para>
-
- </para></refsect2>
-
- </refsect1>
-
-
-
-
- </refentry>
-